package sadi.client;

import java.awt.event.*;

import javax.swing.JOptionPane;

public class Controller 
{
	//private Model model;
	private GUI view;
	
	/****************************************************************************
	 * CONSTRUCTOR
	 ****************************************************************************/
	public Controller(/*Model model, */ GUI gui)
	{
		//this.model = model;
		this.view = gui;
		
		/******Add Listeners to Controller********/
		view.addRegisterListener(new RegisterListener());
	}

	/****************************************************************************
	 * INNER CLASS FOR THE LISTENERS
	 ****************************************************************************/
	class RegisterListener implements ActionListener
	{
		public void actionPerformed(ActionEvent e)
		{
			System.out.println("Register");
			view.setModeView();
		}
	}
}
